package cn.stylefeng.guns.modular.storage.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;

/**
 * 拣货单表
 */
@TableName("storage_out")
@Data
public class StorageOut implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 拣货单编号
     */
    @TableField("storage_out_number")
    private String storageOutNumber;

    /**
     * 出库订单编号
     */
    @TableField("out_order_number")
    private String outOrderNumber;

    /**
     * 仓库id
     */
    @TableField("out_storehouse_id")
    private Long outStorehouseId;

    /**
     * 库房名称
     */
    @TableField("storehouse_name")
    private String storehouseName;

    /**
     * 单据状态
     */
    @TableField("out_order_status")
    private String outOrderStatus;

    /**
     * 标记
     */
    @TableField("mark")
    private String mark;

    /**
     * 备注
     */
    @TableField("notes")
    private String notes;

    /**
     * 装货单位
     */
    @TableField("set_unit")
    private String setUnit;

    /**
     * 装货单位Id
     */
    @TableField("set_unit_id")
    private Long setUnitId;

    /**
     * 装货地点
     */
    @TableField("set_location")
    private String setLocation;

    /**
     * 装货地点id
     */
    @TableField("set_locationid")
    private Long setLocationId;

    /**
     * 联系人
     */
    @TableField("set_people")
    private String setPeople;

    /**
     * 联系电话
     */
    @TableField("set_tel")
    private String setTel;

    /**
     * 提货时间
     */
    @TableField("set_mentiontime")
    private String setMentiontime;

    /**
     * 卸货单位
     */
    @TableField("get_unit")
    private String getUnit;

    /**
     * 卸货单位Id
     */
    @TableField("get_unitid")
    private Long getUnitId;

    /**
     * 卸货地点
     */
    @TableField("get_location")
    private String getLocation;

    /**
     * 卸货地点id
     */
    @TableField("get_locationid")
    private Long getLocationId;

    /**
     * 卸货联系人
     */
    @TableField("get_people")
    private String getPeople;

    /**
     * 卸货联系电话
     */
    @TableField("get_tel")
    private String getTel;

    /**
     * 到达时间
     */
    @TableField("get_mentiontime")
    private String getMentiontime;

    /**
     * 乐观锁
     */
    @TableField("version")
    private Integer version;

    /**
     * 交付客户id
     */
    @TableField("deliver_id")
    private Long deliverId;

    /**
     * 部门id
     */
    @TableField("dept_id")
    private Long deptId;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    /**
     * 创建用户
     */
    @TableField(value = "create_user", fill = FieldFill.INSERT)
    private Long createUser;

    /**
     * 修改用户
     */
    @TableField(value = "update_user", fill = FieldFill.UPDATE)
    private Long updateUser;
    
    /**
     * 备货区编号
     */
    @TableField("areanumber")
    private String areanumber;

    /**
     * 备货区id
     */
    @TableField("stockuparea_id")
    private Long stockupareaId;

    /**
     * 已分配车牌号
     */
    @TableField("privatecar_carnumbers")
    private String privatecarCarnumbers;

    /**
     * 不重复
     */
    @TableField("repetition")
    private String repetition;

    /**
     * 打印次数
     */
    @TableField("printnum")
    private String printnum;

    @Override
    public String toString() {
        return "StorageOut{" +
        "id=" + id +
        ", storageOutNumber=" + storageOutNumber +
        ", outOrderNumber=" + outOrderNumber +
        ", outStorehouseId=" + outStorehouseId +
        ", storehouseName=" + storehouseName +
        ", outOrderStatus=" + outOrderStatus +
         ", mark=" + mark +
        ", notes=" + notes +
        ", version=" + version +
        ", deliverId=" + deliverId +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", createUser=" + createUser +
        ", updateUser=" + updateUser +
        ", areanumber=" + areanumber +
        ", stockupareaId=" + stockupareaId +
        ", privatecarCarnumbers=" + privatecarCarnumbers +
        "}";
    }
}
